<?php

?>
<?=Yii::$app->view->renderFile('@app/modules/admin/views/common/tab_goods.php', ['tab' => 'set'])?>
<div class="ui equal width grid">
  <div class="column">
    <div class="panel">
      <div class="panel-alone-content">
        <form class="ui form">
          <div class="field">
            <label>商品名称:</label>
            <input type="text" name="good-name" placeholder="不能少于3个字" value="<?=isset($info['good_name']) ? $info['good_name'] : ''?>">
          </div>
          <div class="field">
            <label>商品积分</label>
            <input type="text" name="good-integral" placeholder="请填写数字" value="<?=isset($info['good_integral']) ? $info['good_integral'] : ''?>">
          </div>
          <input type="hidden" name="_csrf" id='csrf' value="<?=Yii::$app->request->csrfToken?>">
          <input type="hidden" name="good-id" value="<?=isset($info['id']) ? $info['id'] : 0?>">
          <button class="ui green basic button good-save  " type="button">提交</button>
        </form>
      </div>
    </div>
  </div>
</div>
<script type="text/javascript">
  require(['modules/goods/set'], function(set) {
    set.goods_edit()

  })
</script>